package cn.tsvtc.shop.feign;

import cn.hutool.core.bean.BeanUtil;
import cn.tsvtc.shop.constant.CookieConstant;
import cn.tsvtc.shop.entity.LoginUser;
import cn.tsvtc.shop.entity.ResultMessage;
import cn.tsvtc.shop.pojo.User;
import com.alibaba.fastjson.JSON;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @Author Athena
 * @Date 2020/10/31 15:39
 * @Version 1.0
 * @Description no description
 */
@FeignClient(value = "SHOP-USER-SERVICE",fallbackFactory = LoginFeignFallback.class)
public interface LoginFeign {



    @RequestMapping("login/status.action")
    @ResponseBody
    public ResultMessage<String> status(@CookieValue(name = "login_token",required = false) String uuid);

}
